home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / connx-1.0 / xconnect.h < prev   
C/C++ Source or Header  |  1995-07-05  |  1KB  |  45 lines

  1. /*
  2.  * X interface for connX client
  3.  */
  4.  
  5. #ifndef XCONN_H
  6. #define XCONN_H
  7.  
  8. #include "connect.h"
  9.  
  10. int X_open (char *pDisplay_name);
  11. int X_close ();
  12. int X_allocate (game_start game_attr);
  13. int X_deallocate ();
  14. int X_get_player_move (coord * move);
  15. int X_add_to_board (coord move, int player_num);
  16. int X_bad_move ();
  17. int X_game_end (int winner, coord start, coord end);
  18. int X_handle_events ();
  19. int X_show_turn (int player_no);
  20.  
  21. #define RESOURCE_FILE "/usr/lib/X11/app-defaults/Connx"
  22.  
  23. /* initial window attrib */
  24. #define X_WIN 0
  25. #define Y_WIN 0
  26. #define WIN_WIDTH 600
  27. #define WIN_HEIGHT 600
  28. #define BORDER_WIDTH 2
  29.  
  30. /* font used if scalable font not found */
  31. #define DISPLAY_FONT "9x15"
  32.  
  33. #define WINNER_STRING " is the WINNER!"
  34. #define TIE_STRING "Tie game!"
  35. #define CANCEL_STRING "Game has been cancelled!"
  36. #define PLAYER_STRING "Players:"
  37. #define TITLE_STRING "connX!!!"
  38. #define TIME_STRING "Time left: "
  39. #define QUIT -3
  40.  
  41. /*speed of animation = number of pixels piece is moved */
  42. #define ANIM_PIXELS 5
  43.  
  44. #endif
  45.